<el-form ref="form" :model="form" :rules="rules" label-width="140px">
    <el-row :gutter="10">
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="协议编号">
                <el-input v-model="form.GWDD001" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="客户类型" prop="GWDD003">
                <el-select v-model="form.GWDD003" clearable>
                    <!--<el-option v-for="item in selectOptions.crm_gwdc_gwdd003" :label="item.value"
                               :value="item.code"></el-option>-->
                    <el-option v-for="item in selectOptions.crm_gwdc_gwdd003"
                               :key="item.GWDE003"
                               :label="item.GWDE004"
                               :value="item.GWDE003">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="申请人员">
                <el-input v-model="form.GWDD007_NAME" readonly clearable>
                    <i class="el-icon-search el-input__icon" @click="openUser" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="渠道商" prop="GWDD012">
                <el-input v-model="form.GWAKL003" readonly clearable>
                    <i class="el-icon-search el-input__icon" @click="openGWDD012" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="结算客户" prop="GWDD031_NAME">
                <el-input v-model="form.GWDD031_NAME" readonly clearable>
                    <i class="el-icon-search el-input__icon" @click="openGWDD031" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="申请部门">
                <el-input v-model="form.GWDD008_NAME" readonly></el-input>
            </el-form-item>
        </el-col>
        <!--<el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="标准结算价上浮%" prop="GWDD013">
                <el-input-number v-model="form.GWDD013" :precision="2" :min="0" :max="100"
                                 style="width: 100%"></el-input-number>
            </el-form-item>
        </el-col>-->
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="申请日期">
                <el-date-picker
                        type="date"
                        v-model="form.GWDD004"
                        value-format="yyyy-MM-dd"
                        style="width: 100%" disabled>
                </el-date-picker>
            </el-form-item>
        </el-col>
        <!--<el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="年度指标金额">
                <el-input-number v-model="form.GWDD014" :min="null" :precision="2"
                                 style="width: 100%"></el-input-number>
            </el-form-item>
        </el-col>-->
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="生效日期" prop="GWDD005">
                <el-date-picker
                        type="date"
                        v-model="form.GWDD005"
                        value-format="yyyy-MM-dd"
                        style="width: 100%">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <!--<el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="年返最高指标%">
                <el-input-number v-model="form.GWDD015" :precision="2" :max="100" style="width: 100%"></el-input-number>
            </el-form-item>
        </el-col>-->
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="失效日期" prop="GWDD006">
                <el-date-picker
                        type="date"
                        v-model="form.GWDD006"
                        value-format="yyyy-MM-dd"
                        style="width: 100%">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="备注">
                <el-input type="textarea" v-model="form.GWDC015"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <div class="pos-re">
                <div class="pos-ab" style="margin-bottom: 10px;">
                    <el-button type="primary" size="small"
                               @click="addData">添加
                    </el-button>
                    <el-button type="primary" size="small"
                               @click="delData">删除
                    </el-button>
                </div>
                <div class="table-responsive">
                    <table id="gwdc005_edit_table"
                           class="layui-table"
                           lay-size="sm"
                           lay-filter="gwdc005_edit_table">
                    </table>
                </div>
            </div>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right;margin-top: 10px;">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancle">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini" :disabled="isCheck"
                       @click="saveData">保存
            </el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/crm/gwdc005_edit"], $.noop);
</script>